import { lazy } from "react";

const Home=lazy(()=>import("../pages/Home"))
const Deitle=lazy(()=>import("../pages/Deitle"))
const Text=lazy(()=>import("../pages/Text"))
const Layout=lazy(()=>import("../pages/Layout"))
const Success=lazy(()=>import("../pages/Success"))

export const handleHomes=[
    {
        path:"/",
        element:<Home></Home>,
        title:"首页"
    },
    {
        path:'/text',
        element:<Text></Text>,
        title:"消息"
    }
]

export const routes=[
    {
        path:"/",
        element:<Layout></Layout>,
        children:handleHomes
    },
    {
        path:"/deitle",
        element:<Deitle></Deitle>
    },
    {
        path:"/success",
        element:<Success></Success>
    }

]